import axios from '@/libs/request/axios'

// 资产变更审批暂存
export const saveApprove = (params) => {
    return axios.request({
        url: `/case/changeAssets/saveApprove`,
        data: params,
        method: 'post'
    })
}

// 资产变更审批提交
export const submitApprove = (params) => {
    return axios.request({
        url: `/case/changeAssets/submitApprove`,
        data: params,
        method: 'post'
    })
}
// 暂存审批意见查询
export const queryApprove = (params) => {
    return axios.request({
        url: `/case/changeAssets/queryApprove`,
        params: params,
        method: 'get'
    })
}

export const querySubmitApprove = (params) => {
    return axios.request({
        url: `/case/changeAssets/querySubmitApprove`,
        params: params,
        method: 'get'
    })
}

// 历史审批内容
export const listHistoryContent = (params) => {
    return axios.request({
        url: `/case/taskHistory/listHistoryContent`,
        params: params,
        method: 'get'
    })
}
// 资产变更审批暂存
export const getChangeAssets = (applyNo) => {
    return axios.request({
        url: `/case/changeAssets/getChangeAssets/${applyNo}`,
        data: applyNo,
        method: 'post'
    })
}
// 保存留言
export const saveRemind = (params) => {
    return axios.request({
        url: `/case/changeAssets/saveRemind`,
        params: params,
        method: 'post'
    })
}

export const queryApproveReason = (params) => {
    return axios.request({
        url: `/case/changeAssets/queryApproveReason`,
        params: params,
        method: 'get'
    })
}

//查询资产变更上一岗审批记录
export const queryUpApprove = (params) => {
    return axios.request({
        url: `/case/changeAssets/queryUpApprove`,
        params: params,
        method: 'get'
    })
}

//查询上一岗退回后，原审批记录
export const queryReturnApprove = (params) => {
    return axios.request({
        url: `/case/changeAssets/queryReturnApprove`,
        params: params,
        method: 'get'
    })
}

//查询复议申请全部审批记录
export const queryAllApprove = (params) => {
    return axios.request({
        url: `/case/changeAssets/queryAllApprove`,
        params: params,
        method: 'get'
    })
}

